<script setup>

import {useRouter} from "vue-router";

defineOptions({name: "PersonalHome"});

</script>

<template>
  <div class="person-box">
    <div class="PersonTop">
      <div class="PersonTop_img">
        <img v-image-preview src="@/assets/tx.jpg" />
      </div>
      <div class="PersonTop_text">
        <div class="user_text">
          <div class="user_name">
            <span> 昵称</span>
          </div>
          <div class="user_qianming">
            <span>这个人很懒，什么都没有写~</span>
          </div>
        </div>
        <div class="user_num">
          <div style="cursor: pointer">
            <div class="num_number">111</div>
            <span class="num_text">粉丝</span>
          </div>
          <div style="cursor: pointer">
            <div class="num_number">111</div>
            <span class="num_text">关注</span>
          </div>
          <div>
            <div class="num_number">100</div>
            <span class="num_text">获赞</span>
          </div>
        </div>
      </div>
    </div>
    <div class="person_body">
      <div class="person_body_left">
        <el-card class="box-card" :body-style="{ padding: '0px' }">
          <div class="clearfix">
            <span class="person_body_list" style="border-bottom: none"
            >个人中心</span>
          </div>
          <el-menu
              active-text-color="#00c3ff"
              class="el-menu-vertical-demo"
          >
            <RouterLink to="/personal">
              <el-menu-item
                  :key="personal-info"
                  index="info">
              <span
                  slot="title" style="left: 77px">个人信息</span>
              </el-menu-item>
            </RouterLink>
            <el-menu-item>
              <span slot="title">我的评论</span>
            </el-menu-item>
            <RouterLink to="/personal/address">
              <el-menu-item
                  :key="personal-address"
              >
                <span slot="title">收货地址</span>
              </el-menu-item>
            </RouterLink>
            <el-menu-item>
              <span slot="title">收到点赞</span>
            </el-menu-item>
            <el-menu-item>
              <span slot="title">我的好友</span>
            </el-menu-item>
          </el-menu>
        </el-card>
      </div>
      <div class="person_body_right">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>


<style scoped>
.clearfix {
  height: 57px;
  border-bottom: 1px solid #E5E5E5;
}
.person-box {
  width: 100%;
  height: 820px;
}
.me-video-player {
  background-color: transparent;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  position: fixed;
  left: 0;
  z-index: 0;
  top: 0;
}
.PersonTop {
  width: 1000px;
  height: 140px;
  padding-top: 10px;
  background-color: white;
  margin-top: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  border-radius: 5px;
}

.PersonTop_img {
  width: 150px;
  height: 120px;
  background-color: #8c939d;
  margin-right: 24px;
  margin-left: 20px;
  overflow: hidden;
  border-radius: 20px;
}

.PersonTop_img img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.PersonTop_text {
  height: 120px;
  width: 880px;
  display: flex;
}

.user_text {
  width: 60%;
  height: 100%;
  line-height: 30px;
}

.user_name {
  font-weight: bold;
}

.user_qianming {
  font-size: 14px;
  color: #999;
}

.user_num {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
}

.user_num > div {
  text-align: center;
  border-right: 1px dotted #999;
  box-sizing: border-box;
  width: 80px;
  height: 40px;
  line-height: 20px;
}

.num_text {
  color: #999;
}

.num_number {
  font-size: 20px;
  color: #333;
}
.el-menu-item>span {
  font-size: 16px;
  color: #999;
  position: relative;
  left: 78px;
}

/*下面部分样式*/
.person_body {
  width: 1000px;
  margin-top: 210px;
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

.person_body_left {
  width: 27%;
  height: 600px;
  border-radius: 5px;
  margin-right: 3%;
  text-align: center;
}

.person_body_list {
  position: relative;
  top: 12px;
  width: 100%;
  height: 50px;
  margin-top: 25px;
  font-size: 22px;
  border-bottom: 1px solid #f0f0f0;
}

.el-menu-item {
  margin-top: 22px;
}

.person_body_right {
  width: 70%;
  /* height: 500px; */
  padding: 0 15px;
  border-radius: 5px;
  background-color: white;
}

.box-card {
  height: 500px;
}

/*ui样式*/
.el-button {
  width: 84px;
}
</style>

